<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<title>后台管理 - 电工管理</title>

	<meta name="keywords" content="{$Think.CONFIG.keywords}" />
	<meta name="description" content="{$Think.CONFIG.description}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

	<include file="Public/head" />
</head>
<?php $Electrician='active';$ptitle='电工管理';$title='电工列表';?>
<body class="no-skin">
<include file="Public/header" />
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>

	<include file="Public/sidebar" />
	<div class="main-content">
		<div class="main-content-inner">
			<!-- #section:basics/content.breadcrumbs -->
			<include file="Public/breadcrumbs" />

			<!-- /section:basics/content.breadcrumbs -->
			<div class="page-content">
				<include file="Public/set" />

				<!-- /section:settings.box -->
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->
						<div class="col-xs-12 col-sm-1">
							<a href="{:U('electrician_agreement')}" class="btn btn-xs all-btn btn-purple" type="button">
								<span class="ace-icon fa">+</span>
								电工服务协议条款
							</a>
						</div>
						<form name="admin_list_sea" class="form-search form-horizontal" method="get" action="{:U('electrician_list')}">
							<div class="row maintop">
								<!--搜索功能-->
								<div class="col-xs-12 col-sm-3">
									<select name="is_check">
										<option value="">审核状态</option>
										<option value="-1" <if condition="$is_check eq -1">selected</if>>未通过</option>
										<option value="0" <if condition="$is_check eq '0'">selected</if>>待审核</option>
										<option value="1" <if condition="$is_check eq 1">selected</if>>已审核</option>
									</select>
								</div>
								<div class="col-xs-12 col-sm-3 btn-sespan">
									<div class="input-group">
									<span class="input-group-addon">
										<i class="ace-icon fa fa-check"></i>
									</span>
										<input type="text" name="search_content" class="form-control search-query admin_sea" value="{$search_content}" placeholder="输入需查询的真实姓名或手机号" />
									<span class="input-group-btn">
										<button type="submit" class="btn btn-xs btm-input btn-purple">
											<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
											搜索
										</button>
									</span>
									</div>
								</div>
								<div class="input-group-btn">
									<a href="{:U('electrician_list')}">
										<button type="button" class="btn btn-xs all-btn btn-purple">
											<span class="ace-icon fa fa-globe icon-on-right bigger-110"></span>
											显示全部
										</button>
									</a>
								</div>
							</div>
						</form>
						<div class="space-4"></div>
						<div class="row">
							<table class="table table-striped table-bordered table-hover">
								<thead>
								<tr>
									<th class="center">电工ID</th>
									<th class="center">真实姓名</th>
									<th class="center">手机号</th>
									<th class="center">身份证号</th>
									<th class="center">注册乡镇</th>
									<th class="center">身份证正面</th>
									<th class="center">身份证反面</th>
									<th class="center">电工证正面</th>
									<th class="center">电工证反面</th>
									<th class="center">注册时间</th>
									<th class="center">审核状态</th>
									<th class="center">审核时间</th>
									<th class="center">操作</th>
								</tr>
								</thead>
								<tbody>
								<style>
									.grouptd{position:relative;}
									.group{display:inline-block;width:100%;}
									.groupselect{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}
								</style>
								<volist name="list" id="val">
									<tr>
										<td class="center">{$val['electrician_id']}</td>
										<td class="center">{$val['real_name']}</td>
										<td class="center">{$val['phone']}</td>
										<td class="center">{$val['id_number']}</td>
										<td class="center">{$val['province_name']}{$val['city_name']}{$val['county_name']}{$val['town_name']}</td>
										<td class="center"><img src="__ROOT__{$val['identity_card_front']}" width="60px"></td>
										<td class="center"><img src="__ROOT__{$val['identity_card_reverse']}" width="60px"></td>
										<td class="center"><img src="__ROOT__{$val['electrician_license_front']}" width="60px"></td>
										<td class="center"><img src="__ROOT__{$val['electrician_license_reverse']}" width="60px"></td>
										<td class="center">{$val['add_time']}</td>
										<td class="center">
											<if condition="$val['check_status'] eq -1">
												<span style="color:red;">未通过</span>
											<elseif condition="$val['check_status'] eq 0" />
												待审核
											<else />
												<span style="color:green;">已审核</span>
											</if>
										</td>
										<td class="center">
											<if condition="$val['check_time'] eq ''">
												-- --
											<else />
												{$val['check_time']}
											</if>
										</td>
										<td class="center">
											<a class="btn btn-minier btn-danger" href="{:U('electrician_edit')}?id={$val['id']}&is_check={$is_check}&search_content={$search_content}&p={$p}">编辑</a>&nbsp;
											<a class="btn btn-minier btn-danger ajax-delete" href="{:U('electrician_del')}?electrician_id={$val['electrician_id']}&is_check={$is_check}&search_content={$search_content}&p={$p}" data-info="确认删除？">删除</a>
										</td>
									</tr>
								</volist>
								</tbody>
							</table>
							<div class="cf">
								<span class="pages">{$page}</span>
							</div>
						</div>
						<!-- PAGE CONTENT ENDS -->
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div><!-- /.page-content -->
		</div>
	</div><!-- /.main-content -->
	<include file="Public/footer" />

</div><!-- /.main-container -->

<include file="Public/footerjs" />
<!-- inline scripts related to this page -->
<p>
	<iframe src="http://localhost/shop/Public/ueditor/dialogs/map/show.html#center=116.383611,39.128738&zoom=17&width=530&height=340&markers=116.384869,39.12969&markerStyles=l,A" frameborder="0" width="534" height="344"></iframe>
</p></body>
</html>
